package cn.nawang.ebeim.api.repository;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;

import cn.nawang.ebeim.api.domain.BackStrategy;

/**
 * @ClassName: BackStrategyRepository
 * @Description: TODO
 * @author fanyb
 * @date Aug 24, 2015 5:15:13 PM
 * @version v1.0
 */
public interface BackStrategyRepository extends JpaRepository<BackStrategy, String> {
  @Query("select bs from BackStrategy bs where bs.datasourceId=?")
  public BackStrategy findByDatasourceId(String datasourceId);
}
